/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

#section-account {
  .selector-mode {
    border-bottom: 1px solid fade(#fff, 88%);
    margin-bottom: 24px;

    .btn-mode {
      background-color: transparent;
      font-weight: @font-weight-bold;
      padding: 0 8px;
      width: 100%;
    }
  }

  .selector-mode::after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid fade(#fff, 88%);
    content: '';
    margin-left: 152px;
    height: 0;
    width: 0;
  }

  .platform-web & .spacer {
    min-height: 52px;
  }

  #form-account-login {
    .selector-method {
      height: 24px;
      margin: 0 72px 24px;

      .btn-method {
        background-color: transparent;
        color: fade(#fff, 64%);
        font-weight: @font-weight-bold;
        height: 24px;
        line-height: 22px;
        width: 80px;
      }

      .is-active {
        border-color: fade(#fff, 92%);
        border-radius: 12px;
        color: #fff;
      }
    }

    #login-method-password {
      .reason-info {
        display: inline-block;
        font-size: 13px;
        font-weight: 400;
        height: 24px;
        line-height: 24px;
        margin: 12px 0 24px;
      }
    }

    #login-method-phone {
      #wire-login-country-code {
        border-right: 1px solid fade(#fff, 40%);
        flex: 0 0 auto;
        text-align: center;
        padding: 0;
        width: 72px;
      }

      #wire-login-phone {
        border-left: 0;
      }
    }

    #login-method-password,
    #login-method-phone {
      .checkbox-remember {
        height: 24px;
        margin: 12px 4px 0;
      }
    }
  }

  input {
    &:-webkit-autofill,
    &:-webkit-autofill:hover,
    &:-webkit-autofill:focus {
      border: none;
      -webkit-text-fill-color: #fff;
      -webkit-box-shadow: 0 0 0 1000px #265f82 inset;
      -webkit-transition: background-color 5000s ease-in-out 0s;
    }
  }
}
